package com.example.demo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;

@Getter
@Setter
@ToString
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class UserCommentVO {
    private Long id;
    private Long parentId;
    private Long replyId;
    private Long itemId;
    private String content;
    private List<String> images;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public UserCommentVO() {
    }

    public UserCommentVO(Long id, Long parentId, Long replyId, Long itemId, String content, List<String> images, LocalDateTime createTime) {
        this.id = id;
        this.parentId = parentId;
        this.replyId = replyId;
        this.itemId = itemId;
        this.content = content;
        this.images = images;
        this.createTime = createTime;
    }
}
